<style>
    .ui-popup-modal .ui-dialog-body {
        /*padding: 0;*/
    }

    .table-responsive .no-data {
        height: 170px;
    }

    .table-responsive .no-data span {
        margin-top: 40px;
    }

    .ui-dialog-button {
        margin-bottom: 0
    }

    .remind .bottom {
        bottom: 0;
        left: 0;
        right: 0;
        padding-top: 20px;
        padding-bottom: 0;
    }
</style>
<div i="content" class="ui-dialog-content">
    <form class="remind ui-dialog-content f12" name="set_remind_form" style="width: 810px">
        <table width="100%">
            <tbody>
            <tr>
                <td class="form-cell w100 pt16" align="right" valign="top">
                    <span class="c-red">* </span>续签进展：
                </td>
                <td class="form-cell pt16" colspan="3">
                    <input type="radio" name="data.isXq" ui-radio="部分续签" value="1" ng-model="data.isXq"
                           ng-disabled="isNotEditing()">
                    <span class="ml30">
                        <input type="radio" name="data.isXq" ui-radio="全部续签" value="2" ng-model="data.isXq"
                               ng-disabled="isNotEditing()">
                    </span>
                    <span class="ml30">
                        <input type="radio" name="data.isXq" ui-radio="不续签" value="0" ng-model="data.isXq"
                               ng-disabled="isNotEditing()">
                    </span>
                </td>
                <td>
                    <div class="question-tip fr">
                        <i class="iconfont-common icon-question fl pt12"></i>
                        <div class="tip-wrap tip-wrap-pic">
                            <span class="fl">一旦做了续签汇报，将不会再收到该合同的续签提醒。确认续签时，需勾选续签明细，项目名称到具体的应用。</span>
                        </div>
                    </div>
                </td>
            </tr>
            <tr ng-if="data.isXq == '1' || data.isXq == '2'">
                <td class="form-cell w100 pt16" align="right" valign="top">
                    <span class="c-red">* </span>续签节点：
                </td>
                <td class="form-cell pt16" colspan="3">
                    <input type="radio" name="data.renewStatus" ui-radio="商务谈判中" value="1" ng-model="data.renewStatus"
                           ng-disabled="isNotEditing()">
                    <span class="ml30">
                        <input type="radio" name="data.renewStatus" ui-radio="合同流程中" value="2"
                               ng-model="data.renewStatus" ng-disabled="isNotEditing()">
                    </span>
                    <span class="ml30">
                        <input type="radio" name="data.renewStatus" ui-radio="款项申请中" value="3"
                               ng-model="data.renewStatus" ng-disabled="isNotEditing()">
                    </span>
                    <span class="ml30">
                        <input type="radio" name="data.renewStatus" ui-radio="续签完成" value="4"
                               ng-model="data.renewStatus" ng-disabled="isNotEditing()">
                    </span>
                </td>
            </tr>
            <tr ng-if="data.isXq == '1' || data.isXq == '0'">
                <td class="form-cell w100 pt16" align="right" valign="top">
                    <span class="c-red">* </span>不续签原因：
                </td>
                <td class="form-cell pt16" colspan="3">
                    <input type="radio" name="data.noRenewReason" ui-radio="项目售罄" value="1"
                           ng-model="data.noRenewReason" ng-disabled="isNotEditing()">
                    <span class="ml30">
                        <input type="radio" name="data.noRenewReason" ui-radio="应用不好" value="2"
                               ng-model="data.noRenewReason" ng-disabled="isNotEditing()">
                    </span>
                    <span class="ml30">
                        <input type="radio" name="data.noRenewReason" ui-radio="其他" value="3"
                               ng-model="data.noRenewReason" ng-disabled="isNotEditing()">
                    </span>
                </td>
            </tr>
            <tr>
                <td class="form-cell w100" align="right" valign="top">说明：</td>
                <td class="form-cell" colspan="3" valign="top">
                    <textarea name="reason" ng-model="data.reason" cols="30" rows="10" class="textarea"
                              ng-disabled="isNotEditing()"></textarea>
                </td>
            </tr>
            <tr>
                <td class="form-cell w100 pt16" align="right" valign="top">续签明细：</td>
                <td class="form-cell pt16" colspan="3" valign="top">
                    <div class="c-gray">请勾选要续签的应用，未勾选的则对应的是不续签</div>
                    <div class="table-responsive" style="border-top: 1px solid #ddd" ng-clock>
                        <table ng-if="(isNotEditing() && data.projects.length) || (isEditing() && !canNotUpdate())"
                               class="table table-bordered"
                               ng-class="{disable: isNotEditing()}" width="100%">
                            <tr ng-repeat="project in data.projects">
                                <td class="w100 ta-c">{{project.projectName}}</td>
                                <td>
                                    <ul class="clearfix select-list">
                                        <li ng-repeat="app in project.apps"
                                            ng-if="isNotEditing() || (isEditing() && app.isCanUpdate)"
                                            ng-class="{active: app.isXq == '1'}">
                                            <a href="javascript:;"
                                               ng-click="toggleActive(app, data.isXq)">{{app.appName}}</a>
                                        </li>
                                    </ul>
                                </td>
                            </tr>
                        </table>
                        <div ng-hide="isNotEditing() || data.projects.length" class="no-data"><span>暂无数据</span>
                        </div>
                        <div ng-show="isEditing() && canNotUpdate()" class="no-data">
                            <span style="width: 100%;">暂无数据， 应用已续签、或已禁用， 不能重新汇报</span>
                        </div>
                </td>
            </tr>
            <tr>
                <td class="form-cell w100" align="right" valign="top">
                    操作人：
                </td>
                <td class="form-cell">
                    <input type="text" class="input-text" style="width: 250px" name="username" ng-model="data.userName"
                           ng-disabled="isNotEditing()">
                </td>
                <td class="form-cell w150" align="right" valign="top">
                    操作时间：
                </td>
                <td class="form-cell">
                    <input type="text" class="input-text" style="width: 250px" name="createdon"
                           ng-model="data.CreatedOn" ng-disabled="isNotEditing()">
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <div class="ui-dialog-footer bottom" style="padding: 20px 20px 0 20px;">
        <div class="ui-dialog-button" style="margin-bottom: 0;">
            <button type="button" class="ui-dialog-autofocus" ng-click="click($dialog, $dialogScope, data)"
                    ng-disabled="isEditing() && canNotUpdate()">
                {{showGetRemindOkValue}}
            </button>
            <button type="button" ng-click="close()">取消</button>
        </div>
    </div>
</div>